//
// Created by Castle on 2025/10/27.
//

using namespace std;
#include <iostream>

int main() {
    int scores[10]{11,12,13,14,15,16,17,18,19,20};

    int * p1 {&scores[0]};
    int * p2 {&scores[8]};

    // The further you can go in the array,the bigger the address
    cout << "Comparing pointers : " << boolalpha << endl;
    cout << "p1 > p2 : " << (p1 > p2) << endl;
    cout << "p1 < p2 : " << (p1 < p2) << endl;
    cout << "p1 >= p2 : " << (p1 >= p2) << endl;
    cout << "p1 <= p2 : " << (p1 <= p2) << endl;
    cout << "p1 == p2 : " << (p1 == p2) << endl;
    cout << "p1 != p2 : " << (p1 != p2) << endl;


    return 0;
}